<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Sendmail_modul extends CI_Controller {
	public $subject;
	public $html;
	public $email;
	public $people;

	function __controller() {
		parent::Controller();
		$this -> subject = 'тест сообщения';
		$this -> html = 'no text';
		$this -> email = 'info@yroom.ru';
		$this -> people = '';
	}

	public function send() {
		$this -> load -> library('email');
		$this -> email -> from($this -> people, $this -> email);
		$this -> email -> to('info@yroom.ru');
		$this -> email -> subject($this -> subject);
		$this -> email -> message($this -> html);
		$this -> email -> send();
		return;
	}

}
